If you want to combine error and standard output into a single file, use numbered redirection ( see Listing 4). 如果希望将错误或标准输出组合为单个文件,请使用编号重定向(请参见清单4)。
For that, you can take advantage of the shell's interactive capabilities and an additional type of output redirection known as a pipe. 为此,您可以利用shell的交互式功能和一种附加类型的输出重定向(叫做管道)。
In most cases, altered contents are emitted to standard output where you can use redirection operators to further process ( using pipes&|) or capture the results ( using the> or>> operators). 在大多数情况下,可以将经过修改的内容发送到标准输出,您可以使用重定向操作符对其进行进一步的处理(使用管道)或捕获其中的结果(使用>或>>操作符)。
To capture the output of each background command, consider redirecting the output to a file, using the redirection operators>,>,>>, and>>. 为了捕获每个后台命令的输出,请考虑使用重定向操作符>、>、>>和>>,将输入重定向到某个文件。
We said that output redirection using n> usually overwrites existing files. 使用n>的输出重定向通常覆盖现有的文件。
You do this with the output redirection operator (>). 可以通过输出重定向操作符(>)实现这一点。